#ifndef _MESH_H
#define _MESH_H

#include <d3dx9core.h>

class Mesh
{
public:
	Mesh(LPDIRECT3DDEVICE9 g_d3dDevice, const char *fileName);
	~Mesh();

	void Render(LPDIRECT3DDEVICE9 g_d3dDevice);

private:

	LPD3DXMESH			m_mesh;			  //Mesh Object
	D3DMATERIAL9*       m_meshMaterials;  //Materials for our mesh
	LPDIRECT3DTEXTURE9* m_meshTextures;   //Textures for our mesh
	DWORD               m_dwNumMaterials; //Number of mesh materials
};

#endif